import { createRouter, createWebHistory } from "vue-router";
import { staticRoutes, errorRoutes } from "./modules/staticRouter";

// 合并所有路由
const routes = [
  ...staticRoutes,
  ...errorRoutes
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
})

export default router;
